﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.SystemServices.Dtos.User
{
    using System.ComponentModel.DataAnnotations;

    /// <summary>
    /// 修改密码传输对象
    /// </summary>
    public class PasswordDto
    {

        /// <summary>
        /// 当前密码
        /// </summary>
        [Required(ErrorMessage = "当前密码不能为空")]
        public string OldPassword { get; set; }

        /// <summary>
        /// 新密码
        /// </summary>
        [Required(ErrorMessage = "新密码不能为空")]
        //[MinLength(6, ErrorMessage = "新密码长度不能少于6位")]
        public string NewPassword { get; set; }

    }

}
